import { get, post} from './service'
//----------------登录---------

export const PLogin = data => {
    return post({
        url: "/api/Auth/PLogin",
        data
    })

}

//-------------用户

//用户列表
export const GetUserList = params => {
    return get({
        url: "/api/User/GetUserList",
        params
    })
}
//保存用户
export const SaveUserInfo = data => {
    return post({
        url: "/api/User/SaveUserInfo",
        data
    })
}

//获取单个患者信息
export const GetUserById = params => {
    return get({
        url: "/api/User/GetUserById",
        params
    })
}

//重置密码
export const ReSetUserPass = data => {
    return post({
        url: "/api/User/ReSetUserPass",
        data
    })
}


//-----------科室字典------------

//科室列表
export const GetDeptList = params => {
    return get({
        url: "/api/User/GetDeptList",
        params
    })
}

//-----------------角色字典---------

//科室列表
export const GetRoleList = params => {
    return get({
        url: "/api/User/GetRoleList",
        params
    })
}



//-----------------------------护理日常------------
//通过分组获取列表数据
export const GetNurseDayWorksByMouth = params => {
    return get({
        url: "/api/NurseDayWork/GetNurseDayWorksByMouth",
        params
    })

}

//获取列配置
export const GetDictCol = params => {
    return get({
        url: "/api/NurseDayWork/GetDictCol",
        params
    })

}

//保存列配置排序
export const SaveDictColSort = data => {
    return post({
        url: "/api/NurseDayWork/SaveDictColSort",
        data
    })
}

//导出年汇总
export const GetExcel = params => {
    return get({
        url: "/api/NurseDayWork/GetExcel",
        responseType: 'blob',
        params
    })
}
//通过主键获取一条数据，用于更新
export const GetNurseDayWorkById = params => {
    return get({
        url: "/api/NurseDayWork/GetNurseDayWorkById",
        params
    })

}
//保存一条数据
export const SaveNurseDayWork = data => {
    return post({
        url: "/api/NurseDayWork/SaveNurseDayWork",
        data
    })
}

//------------经颅磁----------

//查询在科患者
export const QueryPatientInHospital = data => {
    return get({
        url: "/api/PatientInHospital/QueryPatientInHospital",
        data
    })
}

//保存一个患者
export const SavePatientInHospital = data => {
    return post({
        url: "/api/PatientInHospital/SavePatientInHospital",
        data
    })
}



//查询经颅磁记录
export const QueryRtmsRecord = data => {
    return post({
        url: "/api/RtmsRecord/QueryRtmsRecord",
        data
    })
}

//保存一条经颅磁记录
export const SaveRtmsRecords = data => {
    return post({
        url: "/api/RtmsRecord/SaveRtmsRecords",
        data
    })
}
//删除一条经颅磁记录
export const DelRtmsRecord = data => {
    return post({
        url: "/api/RtmsRecord/DelRtmsRecord",
        data
    })
}
